package com.thinkfit.jy.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.common.lib.bean.VideoSectionBean;
import com.common.lib.utils.BaseUtils;
import com.thinkfit.jy.R;

import org.jetbrains.annotations.NotNull;

public class LiveVideoAdapter extends BaseQuickAdapter<VideoSectionBean, BaseViewHolder> {

    private Context mContext;

    public LiveVideoAdapter(Context context) {
        super(R.layout.item_live_video);
        mContext = context;
    }


    @Override
    protected void convert(@NotNull BaseViewHolder helper, VideoSectionBean bean) {
        helper.setText(R.id.tvName, bean.getName());
        BaseUtils.StaticParams.loadImage(mContext, 0, bean.getCover(), helper.getView(R.id.iv));
    }

}
